{config_load file="index.conf"}
{include file="inc/doctype.tpl"}

<head>
    <title>Send message</title>
    {include file="inc/include.tpl"}
</head>

<body>

{include file="inc/logo.tpl"}
{include file="inc/global_menu.tpl"}

<div>
    <strong><a href="/another/send/{$data.user_id}/">Send</a> message to 
    <a href="/another/profile/{$data.user_id}/">{$data.user_login|escape}</a></strong>
</div><br />

<div><strong>{$error.empty}</strong></div>

{if !$send}
	<form action="" method="post">
	    Title <div><strong>{$error.title}</strong></div>
	    <input type="text" name="form[title]" value="{$form.title|escape}" maxlength="150" /><br />
	    Message <div><strong>{$error.message}</strong></div>
	    <textarea name="form[content]" cols="25" rows="5">{$form.content|escape}</textarea><br />
	    <input type="submit" name="submit" value="Send" />
	</form>
{else}
    <p>Message was send</p>
{/if}

<p>&nbsp;</p>
<a href="/another/index/{$data.user_id}/">User menu</a>

</body>

</html>